<div class="relationship">
  <form id="rel_<%= @relationship_name %>_<%= @root.id %>">
	<input type="hidden" name="id" value="<%= @root.id %>">
	<input type="hidden" name="rel_name" value="<%= @relationship_name %>">
	<input type="hidden" name="klass" value="<%= @klass %>">
<% for item in @all_items %>
	<input type="checkbox" <%= 'checked' if @items.include?(item) %> name="item[<%= item.id %>]" id="item_<%= item.id %>">&nbsp;<%= item.streamlined_name(@model_ui.relationships[@relationship_name].view_def.fields) %><br/>
<% end %>
  </form>
<%= observe_form  "rel_#{@relationship_name}_#{@root.id}", 
				  :frequency => 0.5,
				  :url => {:action => 'update_relationship'},
				  :with => "foo = Form.serialize('rel_#{@relationship_name}_#{@root.id}')"%>
</div>